package classes.pack;

import android.util.Log;

public class StartupManager 
{
	/*:::::::::Startup sequence:::::::::::
	 * Gui 
	 * BackGroundService : 
	 * 		add BackgroundService to Gui
	 * 		add Gui to BackgroundService
	 * GeoLoc
	 * 		Add all GeoLoc child classes to BackGroundService
	 * Profiling
	 * 		Add profiling to Gui and BackGroundService
	 * Profile
	 * 		Load profiles from xml and add to Profiling
	 * Preference
	 * 		add preferences to profile
	 * ParkingZones
	 * 		add ParkingZones to Gui and BackgroundService and load Parking zones (from xml/external source)
	 * Logging
	 * 		add Logging to Gui and BackgroundService load logs from xml and
	 * ExtInterface
	 * 		add all ExtInterface child classes to Gui
	 * 		add Gui to every extInterface
	 */
	
	Profiling profiling;
	
	public StartupManager(UIMain uiMain)//, Profile CurrentProfile)
	{		
		//!!!! crashes need to create gps listener
		//backGroundService.createGeoLocs();
		
		profiling = new Profiling(uiMain);	
		
		
		
									
		ParkingZones parkingZones = new ParkingZones();		
		
		
		
		Gui.setProfiling(profiling);
							
		Gui.setParkingZones(parkingZones);								
		Gui.setUiMain(uiMain);
		
		Logging.Initialize();	
		Logging.loadLogs();												
		Gui.createExtInterfaces();												

	}
	
}
